#!/bin/bash
. /vagrant/vagrant/functions.sh

GENERIC_SRC=smx@${DL_SERVER}:/opt/www/ops30.sumilux.com

if [ ! -d /tmp/vagrant-cache/wget/jdk1.8 ];then
mkdir -p /tmp/vagrant-cache/wget/jdk1.8
fi

echo "--> Begin to download jdk1.8 package"

rsync ${RSYNC_OPTS} -e "${RSH_OPTS}" ${GENERIC_SRC}/jdk1.8 /tmp/vagrant-cache/wget/


echo "--> download_jdk.sh finished in ${SECONDS}s"
